<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>转账详情</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="" name="description">
<meta content="" name="author">
<link href="${request.getContextPath()}/Public/assets/admin/css/css.css"
	rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/global/plugins/font-awesome/css/font-awesome.min.css"
	rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/global/plugins/simple-line-icons/simple-line-icons.min.css"
	rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/global/plugins/bootstrap/css/bootstrap.min.css"
	rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/global/plugins/uniform/css/uniform.default.css"
	rel="stylesheet" type="text/css">

<link
	href="${request.getContextPath()}/Public/assets/global/css/components-rounded.css"
	id="style_components" rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/global/css/plugins.css"
	rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/admin/css/layout.css"
	rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/admin/css/themes/default.css"
	rel="stylesheet" type="text/css" id="style_color">
<link
	href="${request.getContextPath()}/Public/assets/admin/css/custom.css"
	rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css"
	href="${request.getContextPath()}/Public/assets/global/plugins/jquery-notific8/jquery.notific8.min.css" />
<link
	href="${request.getContextPath()}/Public/assets/admin/css/common.css"
	rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/global/css/kkpager.css"
	rel="stylesheet" type="text/css">
<link
	href="${request.getContextPath()}/Public/assets/global/plugins/fancybox/source/jquery.fancybox.css"
	rel="stylesheet" type="text/css" />
<link rel="shortcut icon"
	href="${request.getContextPath()}/Public/favicon.ico">

	<!-- pandora-dialog 弹层组件样式 -->
<link
	href="${request.getContextPath()}/Public/js/pandora/css/dialog.css"
	rel="stylesheet" type="text/css">

<!-- select2控件样式 -->
<link
	href="${request.getContextPath()}/Public/assets/global/plugins/select2/select2.css"
	rel="stylesheet" type="text/css">
<script>
	BASE_URL = '${request.getContextPath()}'
</script>
<style type="text/css">

.nav> li > a {
    text-shadow: none;
    color: red;
    font-size: 22px;
}
.datepicker {
	font-size: 16px;
}

.datepicker td, .datepicker th {
	width: 14.28571428571429%;
	height: 40px;
}

.table-condensed {
	width: 100%;
}

.datepicker-inline {
	width: 100%;
}

.col-md-4, .col-md-6, .col-md-7, .col-md-12 {
	padding-right: 0px;
	padding-left: 0px;
}

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th,
	.table>thead>tr>td, .table>thead>tr>th {
	border-bottom: 1px solid #ddd;
}
.input-inline {
    display: inline-block;
    width: 315px;
    vertical-align: middle;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover{
    color: #EF0E0E;
    cursor: default;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
}
.nav>li>a{
	text-shadow: none;
    color: rgb(45, 41, 41);
    font-size: 15px;
}

/* .navbar-default {
    background-color: #CC5252;
    border-color: #522121;
} */

</style>

</head>
<body class="page-header-top-fixed page-footer-fixed">
	<!--头部信息结束 -->
	<div class="page-header">
		<!--头部开始-->
		<#include "/include/top.html" />
		<!-- 头部信息结束 -->
	</div>

	<!-- BEGIN PAGE CONTAINER -->
	<div class="page-container">
		<#include "/include/menu.html" />
		<div class="page-content-wrapper">
			<div class="page-content">
				<div class="container-fluid">
					<table style="border:1px solid black;" class="table table-striped table-bordered table-hover ttTbl">
						<tr>
							<td width="20%">订单编号:&nbsp;&nbsp;&nbsp;${td.mallOrderId}</td>
							<td width="60%">状态:&nbsp;&nbsp;&nbsp;
								<font color="red">
									<#if status ?? && status=0>
										待付款
									</#if>
									<#if status ?? && status=4>
										冻结失败
									</#if>								
								</font>
							</td>
							<td align="right">付款申请时间:&nbsp;&nbsp;&nbsp;${td.createTime}</td>
						</tr>
						<tr>
							<td>
								卖方企业:&nbsp;&nbsp;&nbsp;${td.sellerCompanyName}<br>
								卖方账号:&nbsp;&nbsp;&nbsp;${td.sellUserAccountNo}<br>
								买方企业:&nbsp;&nbsp;&nbsp;${td.buyerCompanyName}<br>
								买方账号:&nbsp;&nbsp;&nbsp;${td.buyUserAccountNo}<br>
								商品名称:&nbsp;&nbsp;&nbsp;${td.productName}<br>
								商品详情:&nbsp;&nbsp;&nbsp;${td.productDetail}<br>
								商品数量:&nbsp;&nbsp;&nbsp;${td.productNum}${td.productNumUnit}<br>
								交易金额:&nbsp;&nbsp;&nbsp;${td.dealMoney}<br>
								采购时间:&nbsp;&nbsp;&nbsp;${td.orderCreateTime}<br>
								收交方式:&nbsp;&nbsp;&nbsp;${td.settlementType}<br>
								交易类型:&nbsp;&nbsp;&nbsp;${td.dealType}<br>
								发票说明:&nbsp;&nbsp;&nbsp;${td.invoice}<br>
								交易编号:&nbsp;&nbsp;&nbsp;${td.trWaterId}<br>
							</td>
							<td colspan="2" >
								<table style="width: 100%">
									<tr>
									
										<#if status ?? && status=0>
											<td style="width: 20%" >&nbsp;</td>
											<td style="width: 15%" align="right"><img  src="${request.getContextPath()}/Public/images/3.png"></td>
											<td><img  src="${request.getContextPath()}/Public/images/2.png"></td>
											<td><img src="${request.getContextPath()}/Public/images/4.png"></td>
											<td><img  src="${request.getContextPath()}/Public/images/2.png"></td>
											<td style="width: 15%" align="left"><img src="${request.getContextPath()}/Public/images/4.png"></td>
											<td style="width: 20%">&nbsp;</td>
										</#if>
											
										<#if status ?? && status=4>
											<td style="width: 20%" >&nbsp;</td>
											<td style="width: 15%" align="right"><img  src="${request.getContextPath()}/Public/images/3.png"></td>
											<td><img  src="${request.getContextPath()}/Public/images/1.png"></td>
											<td><img src="${request.getContextPath()}/Public/images/3.png"></td>
											<td><img  src="${request.getContextPath()}/Public/images/2.png"></td>
											<td style="width: 15%" align="left"><img src="${request.getContextPath()}/Public/images/4.png"></td>
											<td style="width: 20%">&nbsp;</td>
										</#if>
									</tr>
								</table>
								<table style="width: 100%" class="payProcess">
									<tbody>
										<tr>
											<#if status ?? && status=0>
												<td style="width: 17%" >&nbsp;</td>
												<td style="width: 14%" align="right">待付款</td>
												<td style="width: 17%" >&nbsp;</td>
												<td style="width: 20.5%" >已冻结</td>
												<td style="width: 17%" >已付款</td>
												<td>&nbsp;</td>
												<td>&nbsp;</td>
											</#if>
											
											<#if status ?? && status=4>
												<td style="width: 17%" >&nbsp;</td>
												<td style="width: 14%" align="right">待付款</td>
												<td style="width: 17%" >&nbsp;</td>
												<td style="width: 20.5%" ><p style="color: red">冻结失败</p></td>
												<td style="width: 17%" >已付款</td>
												<td>&nbsp;</td>
												<td>&nbsp;</td>
											</#if>
										</tr>
									</tbody>
								</table>
								<table style="width: 100%" class="payProcess">
									<tbody>
										<tr>
											<td style="width: 20%" >&nbsp;</td>
											<td style="width: 14%" align="right">
												<#if td.createTime??>
												<div>${td.createTime}</div>
												<#else>
												--
												</#if>
											</td>
											<td style="width: 20%" align="right">
												<#if td.freezeTime??>
												<div>${td.freezeTime}</div>
												<#else>
												</#if>
											</td>
											<td style="width: 20%" align="right">
												<#if td.doneTime??>
												<div>${td.doneTime}</div>
												<#else>
												</#if>
											</td>
											<td>&nbsp;</td>
											<td>&nbsp;</td>
											<td>&nbsp;</td>
										</tr>
									</tbody>
								</table>
								<table style="width: 100%" class="payProcess">
									<tr><td>&nbsp;</td></tr>
									<tr><td>&nbsp;</td></tr>
									<tr><td>&nbsp;</td></tr>
									<tr><td>&nbsp;</td></tr>
									<tr><td>&nbsp;</td></tr>
									<tr><td>&nbsp;</td></tr>
									<tr><td>&nbsp;</td></tr>
									<tr align="right">
										<td>
											￥<span style="font-size: 25px;color: red">${td.dealMoney?string(',###.##')}</span>元
										</td>
									</tr>
								</table>
								
								
							</td>
						</tr>
					</table>
						<center>
							<#if hidden == 0>
								<input style="width: 8%;height: 40px;" onclick="freezeMoney('${paymentid}',3,'${td.buyerCompanyName}','${td.dealMoney}');" type="button" value="确定冻结">
							</#if>
							<input style="width: 8%;height: 40px;" type="button" onclick="javascript :history.back(-1);" value="返回">
						</center>
				</div>
			</div>
		</div>
	</div>
	<!-- END PAGE CONTAINER -->
	<!-- 底部开始 -->
	<#include "/include/foot.html" />
	<!-- 底部结束 -->
</body>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/jquery.min.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/jquery-migrate.min.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/jquery-ui/jquery-ui.min.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap/js/bootstrap.min.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/jquery.blockui.min.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/jquery.cokie.min.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/uniform/jquery.uniform.min.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/jquery-notific8/jquery.notific8.min.js"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/jquery.sparkline.min.js"
	type="text/javascript"></script>

<script
	src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker-index.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/fancybox/source/jquery.fancybox.pack.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/scripts/metronic.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/admin/scripts/layout.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/admin/scripts/commonUtils.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/highcharts.js"
	type="text/javascript"></script>
<script
	src="${request.getContextPath()}/Public/assets/global/plugins/kkpager.min.js"
	type="text/javascript"></script>
<script type="text/javascript"
	src="${request.getContextPath()}/Public/My97DatePicker/WdatePicker.js"></script>
<script src="${request.getContextPath()}/Public/js/moment/moment.js"
	type="text/javascript"></script>
	<!-- pandora-dialog 弹层组件 -->
<script type="text/javascript"
	src="${request.getContextPath()}/Public/js/pandora/pandora-dialog.js"></script>

<!-- select2控件 -->
<script type="text/javascript"
	src="${request.getContextPath()}/Public/assets/global/plugins/select2/select2.js"></script>
<script type="text/javascript"
	src="${request.getContextPath()}/Public/assets/global/plugins/select2/select2_locale_zh-CN.js"></script>
	
<!-- 脚本代码 -->
<script type="text/javascript">
	function accountDetail(paymentid){
		alert(paymentid);
		window.location.href="${request.getContextPath()}/transferAccount/transferDetail.do?paymentid="+paymentid;	
	}


	$(function() {
		Metronic.init(); // init metronic core componets
		Layout.init(); // init layout
		
		//搜索下拉框
		//toSelect2();
		
		//初始化分页插件	
		toPage();
	});

	//分页
	function toPage(){
		function getParameter(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
			var r = window.location.search.substr(1).match(reg);
			if (r != null)
				return unescape(r[2]);
			return null;
		}
		
		var totalPage = $('#totalPage').val();
		var totalRecords = $('#totalRecords').val();
	
		var pageNo = getParameter('pno');
		if (!pageNo) {
			pageNo = 1;
		}
		
		//生成分页
		//有些参数是可选的，比如lang，若不传有默认值
		kkpager.generPageHtml({
			pno : pageNo,
			//总页码
			total : totalPage,
			//总数据条数
			totalRecords : totalRecords,
	
			getLink : function(n) {
				return this.hrefFormer + this.hrefLatter + "?pno=" + n+"&depotno="+$("#depotno").val()+"&ownerName="+$("#ownerName").val()+
						"&satstatus="+$("#satstatus").val()+"&startTime="+$("#startTime").val()+"&endTime="+$("#endTime").val()+"&warehouse="+$("#warehouse").val()+"&watstatus="+$("#watstatus").val();
			}
		});
	}
	
	
	function freezeMoney(payid,trstatus,companyName,money){
		var url="${request.getContextPath()}/payFreeze/goupdate.do?payid="+payid+"&trstatus="+trstatus+"&companyName="+companyName+"&money="+money;
		CommonUtils.editModal(url,600);
	}
	
</script>
</html>